package com.java.Servive.impl;

import com.java.Servive.userService;
import com.java.dao.userDao;
import com.java.dao.userDaoImpl;
import com.java.doMain.user;

/**
 * @Author xyd
 * @Date 2021/12/6 14:05
 * @Version 1.0
 */
public class adminServiceImpl implements userService {

    private userDao userDao = new userDaoImpl();

    @Override
    public user login(user user) {
        return userDao.queryAdminByUsernameAndPassword(user.getUsername(),user.getPassword());
    }
}
